private string GivenMissingProperties() { var registration = new ApiBusinessRegistrationCommand { business = new ApiBusiness(), admin = new ApiBusinessAdmin() }; return(JsonSerialiser.Serialise(registration)); }
private static string CreateNewBusinessSaveCommand(ExpectedBusiness expectedBusiness) { var command = new ApiBusinessRegistrationCommand { business = new ApiBusiness { name = expectedBusiness.Name, sport = expectedBusiness.Sport, currency = expectedBusiness.Payment.currency }, admin = expectedBusiness.Admin }; return(JsonSerialiser.Serialise(command)); }