docs: Fix typo in comments

This commit is contained in:
Anton Skuratovich 2021-11-24 22:51:12 +03:00
parent 9e5cd835b4
commit 939aafbb32
3 changed files with 9 additions and 14 deletions

View File

@ -1,8 +1,8 @@
namespace Basket.API.IntegrationEvents.Events; namespace Basket.API.IntegrationEvents.Events;
// Integration Events notes: // Integration Events notes:
// An Event is "something that has happened in the past", therefore its name has to be // An Event is "something that has happened in the past", therefore its name has to be
// An Integration Event is an event that can cause side effects to other microsrvices, Bounded-Contexts or external systems. // An Integration Event is an event that can cause side effects to other microservices, Bounded-Contexts or external systems.
public record OrderStartedIntegrationEvent : IntegrationEvent public record OrderStartedIntegrationEvent : IntegrationEvent
{ {
public string UserId { get; init; } public string UserId { get; init; }
@ -10,4 +10,3 @@ public record OrderStartedIntegrationEvent : IntegrationEvent
public OrderStartedIntegrationEvent(string userId) public OrderStartedIntegrationEvent(string userId)
=> UserId = userId; => UserId = userId;
} }

View File

@ -1,13 +1,10 @@
namespace Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.Events; namespace Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.Events;
// Integration Events notes: // Integration Events notes:
// An Event is "something that has happened in the past", therefore its name has to be // An Event is "something that has happened in the past", therefore its name has to be
// An Integration Event is an event that can cause side effects to other microsrvices, Bounded-Contexts or external systems. // An Integration Event is an event that can cause side effects to other microservices, Bounded-Contexts or external systems.
public record ProductPriceChangedIntegrationEvent : IntegrationEvent public record ProductPriceChangedIntegrationEvent : IntegrationEvent
{ {
// Integration Events notes:
// An Event is “something that has happened in the past”, therefore its name has to be past tense
// An Integration Event is an event that can cause side effects to other microsrvices, Bounded-Contexts or external systems.
public int ProductId { get; private init; } public int ProductId { get; private init; }
public decimal NewPrice { get; private init; } public decimal NewPrice { get; private init; }
@ -21,4 +18,3 @@ public record ProductPriceChangedIntegrationEvent : IntegrationEvent
OldPrice = oldPrice; OldPrice = oldPrice;
} }
} }

View File

@ -1,8 +1,8 @@
namespace Microsoft.eShopOnContainers.Services.Ordering.API.Application.IntegrationEvents.Events; namespace Microsoft.eShopOnContainers.Services.Ordering.API.Application.IntegrationEvents.Events;
// Integration Events notes: // Integration Events notes:
// An Event is “something that has happened in the past”, therefore its name has to be // An Event is “something that has happened in the past”, therefore its name has to be
// An Integration Event is an event that can cause side effects to other microsrvices, Bounded-Contexts or external systems. // An Integration Event is an event that can cause side effects to other microservices, Bounded-Contexts or external systems.
public record OrderStartedIntegrationEvent : IntegrationEvent public record OrderStartedIntegrationEvent : IntegrationEvent
{ {
public string UserId { get; init; } public string UserId { get; init; }