public void Summary_WhenCalledWithOnlyDescription_ReturnsSummaryWithDescription() { var interaction = new Interaction { Description = "My description" }; var summary = interaction.Summary(); Assert.Equal(interaction.Description, summary); }
public void Summary_WhenCalledWithDescriptionAndProviderState_ReturnsSummaryWithDescriptionAndProviderState() { var interaction = new Interaction { Description = "My description", ProviderState = "My provider state" }; var summary = interaction.Summary(); Assert.Equal(interaction.Description + " - " + interaction.ProviderState, summary); }
public void AsJsonString_WhenCalled_ReturnsJsonRepresentation() { const string expectedInteractionJson = "{\"description\":\"My description\",\"provider_state\":\"My provider state\"}"; var interaction = new Interaction { Description = "My description", ProviderState = "My provider state" }; var actualInteractionJson = interaction.AsJsonString(); Assert.Equal(expectedInteractionJson, actualInteractionJson); }