public static void Constructor_InitializesTimeUnit( [Frozen] TimeUnit timeUnit, OrderItem orderItem) { var model = new GetOrderItemModel(orderItem); model.TimeUnit.Should().NotBeNull(); model.TimeUnit.Description.Should().Be(timeUnit.Description()); model.TimeUnit.Name.Should().Be(timeUnit.Name()); }
public static void EachTimeUnit_HasExpectedDescription(TimeUnit timeUnit, string expectedDescription) { var actualDescription = timeUnit.Description(); actualDescription.Should().Be(expectedDescription); }
public static void Constructor_OnDemandProvisioningType_InitializesEstimationPeriod( [Frozen] TimeUnit estimationPeriod, OdooOrderItem odooOrderItem) { odooOrderItem.EstimationPeriod.Should().Be(estimationPeriod.Description()); }
public static void Constructor_InitializesUnitTime( [Frozen] TimeUnit priceTimeUnit, OdooOrderItem odooOrderItem) { odooOrderItem.UnitTime.Should().Be(priceTimeUnit.Description()); }